package top.tangyh.lamp.care.mapper;

import top.tangyh.basic.base.mapper.SuperMapper;
import top.tangyh.lamp.care.entity.BPipeUseRecord;
import org.springframework.stereotype.Repository;
import top.tangyh.lamp.care.vo.query.PipeUseRecordQueryVO;
import top.tangyh.lamp.care.vo.result.PipeUseRecordVO;
import top.tangyh.lamp.care.vo.result.StatisticsByMonth;
import top.tangyh.lamp.care.vo.result.TepPipeUseRecordVO;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 导管使用记录具体信息表
 * </p>
 *
 * @author zqb
 * @date 2024-07-19 15:02:24
 * @create [2024-07-19 15:02:24] [zqb] [代码生成器生成]
 */
@Repository
public interface BPipeUseRecordMapper extends SuperMapper<BPipeUseRecord> {

    List<PipeUseRecordVO> queryAllPipeUseRecordnfo(PipeUseRecordQueryVO yxPipeUseRecordQueryVO);

    List<BPipeUseRecord> ownSelect(PipeUseRecordQueryVO yxPipeUseRecordQueryVO);

    List<TepPipeUseRecordVO> selectTemperatureChannelByHospitalNumberAndTime(String hospitalNumber, Date start, Date end, String typeName);


    List<BPipeUseRecord>  selectValidityOfChannel(String hoverTime,String patientIdent,String hospitalNumber);

    List<BPipeUseRecord> selectKeyData(String hoverTime,String patientIdent,String hospitalNumber);


    List<StatisticsByMonth> pipeUserRecordStatisticsOfSixMonth(String startTime);

}


